<?php

namespace backend\modules\mobo\models;

use Yii;

/**
 * This is the model class for table "biad_backend_menu".
 *
 * @property integer $menuid
 * @property integer $listorder
 * @property string $name
 * @property integer $parentid
 * @property string $controllers
 * @property string $params
 * @property integer $display
 * @property integer $datetime
 * @property string $setting
 * @property integer $shortcut
 * @property string $url
 */
class BackendMenu extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'biad_backend_menu';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['listorder', 'parentid', 'display', 'datetime', 'shortcut'], 'integer'],
            [['setting'], 'string'],
            [['name', 'controllers'], 'string', 'max' => 50],
            [['params'], 'string', 'max' => 255],
            [['url'], 'string', 'max' => 150]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'menuid' => 'Menuid',
            'listorder' => 'Listorder',
            'name' => 'Name',
            'parentid' => 'Parentid',
            'controllers' => 'Controllers',
            'params' => 'Params',
            'display' => 'Display',
            'datetime' => 'Datetime',
            'setting' => 'Setting',
            'shortcut' => 'Shortcut',
            'url' => 'Url',
        ];
    }
}
